// eslint-disable-next-line no-unused-vars
import Vue from 'vue'
import Vuex from 'vuex'
// eslint-disable-next-line no-unused-vars
// eslint-disable-next-line no-undef
Vue.use(Vuex)
// eslint-disable-next-line no-new
// eslint-disable-next-line no-unused-vars
const store = new Vuex.Store({
  state: {
    count: 1,
    poot: 'http://localhost:8082/',
    user: 'admin',
    zhuantai: false,
    yx: '',
    gwc: false,
    gwcsz: 0
  },
  mutations: {
    xg (state, num) {
      state.zhuantai = num
    },
    xggwc (state, num) {
      state.gwc = num
    },
    xggwcsz (state, num) {
      state.gwcsz = num
    },
    userxg (state, us) {
      state.user = us
    },
    yxxg (state, us) {
      state.yx = us
    }
  },
  getters: {
    getUserInfo () {
      return this.zhuantai
    }
  }
})
export default store
